<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>编辑读者信息</title>
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery.js}"></script>
    <script th:src="@{/js/pintuer.js}"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>编辑读者</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" th:action="@{/user/update}">
            <div class="form-group">
                <div class="label">
                    <label>读者账号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.username}"  name="username" data-validate="required:请输入读者账号" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>昵称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.name}" name="name" data-validate="required:请输入昵称" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>密码：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.password}" name="password" data-validate="required:请输入读者密码" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>邮箱：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.email}" name="email" data-validate="required:请输入邮箱" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>地址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.address}" name="address" data-validate="required:请输入地址" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>电话号码：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.phone}" name="phone" data-validate="required:请输入电话号码" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>余额：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.balance}" name="balance" data-validate="required:请输入余额" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label>身份：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" th:value="${m.role}" name="role" data-validate="required:请输入身份" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body>
</html>